const mongoose = require('mongoose');

const ProductImagesSchema = new mongoose.Schema({
  productMetadata: {
    masterId: {type: String, required: true},
    version: {type: Number, required: true, default: 0}
  },
  s3StorageInfo: {type: String, required: true},
}, {collection: 'ProductImages', timestamps: true});

mongoose.model('ProductImagesSchema', ProductImagesSchema);